{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="layui-this">会员激活</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">

				<form class="layui-form layui-form-pane" action="{:url('member/jihuo')}" method="get">
					<div class="layui-inline">
						<label class="layui-form-label">关键词</label>
						<div class="layui-input-inline">
							<input type="text" name="keyword" value="{$keyword}" placeholder="请输入关键词" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<button class="layui-btn">搜索</button>
					</div>
				</form>
				<hr>

				<table class="layui-table">
					<thead>
						<tr>
							<th>ID</th>
							<th>账号(手机号)</th>
							<th>姓名</th>
							<th>身份证号</th>
							<th>微信号</th>
							<th>支付宝</th>
							<th>银行卡</th>
							<th>状态</th>
							<th>注册时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						{foreach name="member_list" item="vo"}
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.mobile}</td>
							<td>{$vo.real_name}</td>
							<td>{$vo.idcard}</td>
							<td>{$vo.wechat}</td>
							<td>{$vo.alipay}</td>
							<td>{$vo.bank_name} - {$vo.bank_no}</td>
							<td>
								{if $vo.status==0}未激活{elseif $vo.status==1}已激活{else/}已禁用{/if}
							</td>
							<td>{$vo.add_time}</td>
							<td>
								<a href="{:url('member/ji',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-small">激活</a>
								<a href="{:url('member/delete',['id'=>$vo['id']])}" class="layui-btn layui-btn-danger layui-btn-small ajax-delete">删除</a>
							</td>
						</tr>
						{/foreach}
					</tbody>
				</table>
				<!--分页-->
				{$member_list->render()}
			</div>
		</div>
	</div>
</div>
<script>
	// 定义全局JS变量
	var GV = {
		current_controller: "adminjcb/{$controller}/jihuo"
	};
</script>
{/block}